package com.epam.training.service.user;

import java.util.List;

import org.springframework.data.domain.Page;

import com.epam.training.domain.*;

public interface UserService {
	List<Customer> getAllCustomers();

	Page<Customer> getAllCustomers(Integer pageNumber);

	List<Admin> getAllAdmins();

	Page<Admin> getAllAdmins(Integer pageNumber);

	Admin getAdminById(Integer id);

	Customer getCustomerById(Integer id);

	boolean save(Customer customer);

	boolean save(Admin admin);

	Customer findCustomerByLogin(String login);

	Admin findAdminByLogin(String login);

	void update(Customer customer, String login);

	void update(Admin admin);

	void deleteCustomer(Integer id);

	void deleteAdmin(Integer id);
}
